package com.sidianzhong.sdz;

import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
import com.sidianzhong.sdz.utils.SocketServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.sidianzhong.sdz.mapper")
@EnableScheduling
@EnableAsync
@ServletComponentScan
public class SdzApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {

        SpringApplication.run(SdzApplication.class, args);
//        SocketServer.startAction();
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(SdzApplication.class);
    }
}
